package com.fll.fangyicommon.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author fll
 * @create 2023/2/27
 */
@Setter
@Getter
@Data
@NoArgsConstructor
public class Friend {

    //主键自增
    @TableId
    private Integer id;
    //外键用户id
    private Integer userId;
    //朋友id
    private Integer friendId;

    private String yl;
    private Integer state;

    //外键
    @TableField(exist = false)
    private User user;

}
